import request from '@/utils/request'

// 获取 直播数据汇总列表
export function statisticsList(params) {
    return request({
        url: '/client/service/live/statistics/list',
        method: 'get',
        params
    })
}
// 获取 客户回款记录列表
export function receiptList(params) {
    return request({
        url: '/client/receipt/record/all/list',
        method: 'get',
        params
    })
}

// 获取 统计客户回款记录
export function receiptListCount(params) {
    return request({
        url: '/client/receipt/record/all/list/count',
        method: 'get',
        params
    })
}

// 查询直播数据
export function liveDetail(id) {
    return request({
        url: `/client/service/live/statistics/live/detail/${id}`,
        method: 'put'
    })
}
// 中台 编辑直播数据
export function recordUpdateLive(data) {
    return request({
        url: '/client/service/live/statistics/update/live',
        method: 'put',
        data
    })
}

// 获取 服务客户 下拉
export function servingCustomers(params) {
    return request({
        url: '/client/service/item/record/v1/clientListV2',
        method: 'get',
        params
    })
}
// 获取 服务客户 下拉
export function servingCustomers3(params) {
    return request({
        url: '/client/service/item/record/v1/clientListV3',
        method: 'get',
        params
    })
}
// 获取 查询销售数据汇总列表
export function summaryList(params) {
    return request({
        url: '/service/summary/v1/list',
        method: 'get',
        params
    })
}
// 获取 售卖明细列表
export function salesList(params) {
    return request({
        url: '/service/sales/detail/v1/list',
        method: 'get',
        params
    })
}
// 获取 核销记录列表
export function verifyList(params) {
    return request({
        url: '/service/verify/record/v1/list',
        method: 'get',
        params
    })
}
// 2024-10-28-------直播提成数据
// 获取 直播人员下拉框
export function userSelectLs(params) {
    return request({
        url: '/live/calendar/user/select/list',
        method: 'get',
        params
    })
}
// 获取 直播数据列表
export function dataList(params) {
    return request({
        url: '/live/import/data/list',
        method: 'get',
        params
    })
}
//直播提成数据列表
export function commissionLs(params) {
    return request({
        url: '/live/import/data/commission/list',
        method: 'get',
        params
    })
}

// 获取 直播数据导入列表
export function dataImportList(params) {
    return request({
        url: '/live/import/data/import/list',
        method: 'get',
        params
    })
}
//直播明细
export function commissionDetailLs(params) {
    return request({
        url: '/live/import/data/commission/detail/list',
        method: 'get',
        params
    })
}
// 获取 订单数据导入列表
export function dataOrderImportList(params) {
    return request({
        url: '/live/import/order/data/import/list',
        method: 'get',
        params
    })
}
// 获取 关联直播ID详情
export function getAssociation(id) {
    return request({
        url: `/live/association/detail/${id}`,
        method: 'get',
    })
}

// 关联直播ID
export function postLiveId(data) {
    return request({
        url: '/live/association/link',
        method: 'post',
        data
    })
}

// 获取 佣金配置详情
export function getCommission(id) {
    return request({
        url: `/live/import/data/commission/detail/${id}`,
        method: 'get',
    })
}

// 中台 保存佣金配置
export function commissionSave(data) {
    return request({
        url: '/live/import/data/commission/save',
        method: 'post',
        data
    })
}